package com.atguigu.day11.method03.m3;

public class Test4 {
	public static void main(String[] args) {
            //向上转型
        MyClass my = new MySub();

        Father f = new Father();
        Son s = new Son();
        Daughter d = new Daughter();

        my.method(f);
        my.method(s);
        my.method(d);
    }
}